<?php
$session = new Zend_Session_Namespace('Zend_Auth');
$sess = $session->data;

$sessionAdmin = new Zend_Session_Namespace('Zend_Auth_Admin');
$sessAdmin = $sessionAdmin->data;

/*
$func = new Application_Model_Functions();
$runText = $func->getRunningText();
 *
 */


echo "<?xml version='1.0' encoding='UTF-8' ?>\n";
echo "<!DOCTYPE HTML >";
?>

<html lang="en">
<head>
    <?php echo $this->headTitle() ?>
    <?php echo $this->headStyleAdmin() ?>
    <?php echo $this->headScriptAdmin() ?>

</head>
<body>
    <div class="container">
        <div class="row">
            <center>
            <div class="btn-group">
              <?php echo $this->topMenuAdmin() ?>
            </div>
            </center>
            <br>
            <div class="col-md-3 column">

                <div class="list-group">
				<a class="list-group-item active">Serial Number</a>
				<div class="list-group-item">
					<a href="<?php echo $this->baseUrl() ?>/sn/gensn">Generate SN</a>
				</div>
                                <div class="list-group-item">
					<a href="<?php echo $this->baseUrl() ?>/sn/cetaksn">Cetak SN</a>
				</div>
                                <div class="list-group-item">
					<a href="<?php echo $this->baseUrl() ?>/sn/aktifasisn">Aktifasi SN</a>
				</div>

			</div>

		</div>
            <div class="col-md-9 column">
                 <div class="col-md-12 column well" align="" id="div_content">
                <?php echo $this->layout()->content; ?>
                </div>
            </div>
           
        </div>
    </div>
    <script>
        function getChild(data) {

                    $.ajax({
                        url: '<?php echo $this->baseUrl() ?>/member/network/',
                        type: "post",
                        data: {key : data, ajax: 1},
                        success: function(response, opts){

                            var cekSess = response.toUpperCase().search("SESSION TIMEOUT");

                            if (cekSess < 0){
                                $("#div_content").html(response);
                            }else{
                                location.href='<?php echo $this->baseUrl() ?>/index/login/Session Timeout silahkan login kembali !';
                            }

                        },
                        error:function(response, opts){
                            //alert("failure");
                            $("#div_content").html(response);

                        }
                    });

                };

            function getTreeChild(data) {

                    $.ajax({
                        url: '<?php echo $this->baseUrl() ?>/member/treenary/',
                        type: "post",
                        data: {key : data, ajax: 1},
                        success: function(response, opts){

                            var cekSess = response.toUpperCase().search("SESSION TIMEOUT");

                            if (cekSess < 0){
                                $("#div_content").html(response);
                            }else{
                                location.href='<?php echo $this->baseUrl() ?>/index/login/Session Timeout silahkan login kembali !';
                            }

                        },
                        error:function(response, opts){
                            //alert("failure");
                            $("#div_content").html(response);

                        }
                    });

                };
        </script>
</body>
</html>


